﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CommentList.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.Shop.Member.CommentList" %>

<%@ Import Namespace ="ZLCMS.Business.Util" %>

<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>


<%=_framePage.TabInfoHtml()%>

<form  id="pageForm" method="post" class="pageForm" runat="Server">
<div class="pageHeader">
	<div class="searchBar">

        <table class="searchContent" width="100%">
        	<tr>
             <td>
			    <span>手机号码&nbsp;</span>
				<asp:TextBox ID="tb_search_memberid" runat="server" cond="memberid" ctltype="textbox"></asp:TextBox>&nbsp;
			</td>
            <td>
			    <span>昵称&nbsp;</span>
				<asp:TextBox ID="tb_search_membernickname" runat="server" cond="membernickname" ctltype="textbox"></asp:TextBox>&nbsp;
			</td>
        	<td><input value="<%=Request["TargetCode"] %>" cond="TargetCode" type="hidden" /></td>
        	<td><input value="<%=Request["TargetKind"] %>" cond="TargetKind" type="hidden" /></td>
               
        	</tr>
        </table>
	    <div class="subBar">
			<ul>
			<li>
			    <a class="button" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.query(this);" 
			    target="navTab" rel="<%= _framePage.NavTabId %>" title="<%= _framePage.NavTabTitle %>"><span>&nbsp;查&nbsp;询&nbsp;</span></a>
			</li>
			</ul>
	    </div>
	</div>
</div>


<div class="pageContent">   
   	<div class="panelBar">
		<ul class="toolBar">
        <%if (!string.IsNullOrEmpty(Request["TargetCode"]) && !string.IsNullOrEmpty(Request["TargetKind"]))
          { %>
        <li><a class="add"  href="/SystemManage/Basics/Shop/Member/CommentDetail.aspx?TargetCode=<%=Request["TargetCode"] %>&TargetKind=<%=Request["TargetKind"] %>" target="navTab" rel="CommentDetail" title="评论详情"><span>添加</span></a></li>
           <%} %> 
        <li><a class="delete" href="/SystemManage/Basics/Shop/Member/CommentDelete.aspx" target="selectedTodo" title="请确定要删除勾选评论"><span>删除</span></a></li>
		</ul>
	</div>
	<div class="tableList"   layoutH="116">
	<table class="list" targetType="navTab" asc="asc" desc="desc">
	    <thead>
			<tr>
                <th width="22px"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
				<%--<th width="100px">评论对象</th>--%>
				<th width="100px">手机</th>
                <th width="100px">昵称</th>
				<th width="100px">评分</th>
				<th width="250px">评论内容</th>
				<th width="120px">时间</th>
				<th width="100px">状态</th>
				<th width="100px">回复次数</th>
				<th width="120px" align=center>操作</th>
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="repeater1">
                <ItemTemplate>
			    <tr target="uid" rel=<%# Eval("Id")%>>
                    <td height=30px><input name="ids" value="<%#Eval("Id")%>" type="checkbox"/></td>
                    <%--<td>
				        <a href="/SystemManage/Basics/ProductSKU/ProductEdit.aspx?pid=<%# GetProductId(Eval("TargetCode"))%>" onclick="ZLAN_DWZ_EX.open(this);" target="navTab" title="商品详情" rel="ProductDetail"><%# Eval("TargetCode")%></a></td>
				    --%><td><%# GetMemberRealName(Eval("MemberAccount")).Phone%></td>
                    <td><%# GetMemberRealName(Eval("MemberAccount")).NickName%></td>
				    <td><%# Eval("Score")%></td>
				    <td><textarea rows="2" cols="40"><%# Eval("Content")%></textarea></td>
				    <td><%# Eval("RecordDate")%></td>
				    <td><%# (string)Eval("Status") == "1" ?"可见":"屏蔽"%></td>
				    <td><%# GetReplyCounter(Eval("Id"))%></td>

				    <td align=center>
				        <a href="/SystemManage/Basics/Shop/Member/CommentList.aspx?TargetCode=<%# Eval("Id")%>&TargetKind=COMMENT&tabid=ReplyDetail&tabtitle=评论回复管理" target="navTab" rel="ReplyDetail" title="评论回复管理">回复</a>
				        &nbsp;&nbsp;
				        <a href="/SystemManage/Basics/Shop/Member/CommentDetail.aspx?uid=<%# Eval("Id")%>" target="navTab" rel="CommentDetail" title="评论详情">编辑</a>
				        &nbsp;&nbsp;
				        <a href="/SystemManage/Basics/Shop/Member/CommentDelete.aspx?ids=<%# Eval("Id")%>" target="ajaxTodo" title="请确定要删除">删除</a>
				    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>

	</div>
	
    
    
<%= _framePage.GetPagerContentHtml() %>
</div>
</form>